package com.gimi.cloud.bbp.dao.dao.moreInfo;

import com.gimi.cloud.bbp.dao.myMapper.MyMapper;
import com.gimi.cloud.bbp.entity.app.moreInfo.MoreInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @auther loongs
 * @date 2018/1/9  10:31
 */
@Mapper
public interface MoreInfoDao extends MyMapper<MoreInfoEntity> {
	
	@Select("select * from rd_more_info where user_id=#{userId} and data_type='6' order by f_id desc limit 1")
	MoreInfoEntity getEntityByUserId(@Param("userId")Integer userId, @Param("dataType")Integer dataType);

}
